home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Apr 88 / Saving Resource Data 4⁄4 < prev   
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  33 lines  |  [TEXT/GEOL]

  1. Item    6528361                         4-April-88        13:11
  2.  
  3. From:   SHEETS1                         Sheets, Steve
  4.  
  5. To:     MACAPP$                         MacApp Interest List
  6.  
  7. Sub:    Saving Resource Data
  8.  
  9. Dear MacAppers,
  10.     I am having a problem trying to read/write a document using MacApp.  My
  11. document contains no information in the data fork, and a single variable size
  12. resource in the resource fork.  Exactly how does resource saving work under
  13. MacApp?
  14.     I examined the example, DrawShape, because it was the only one that handle
  15. this type of thing.  According to it, DoRead just needs to load in the resource
  16. and copy the data (simple).  DoRead does not need to release the resource, does
  17. the system do this?  DoWrite was much more puzzling.  It creates a new handle,
  18. stuffs the data into it, and then adds the handles as a resource to the file.
  19. What happen to the old resource if there was any?  Again there is no releasing
  20. of the resource, there is not even any flushing of the resource to make sure
  21. the write was sent to the file.  Does MacApp handle all this?
  22.     By the way, what are the constants kRsrcTypeOverhead and kRsrcOverhead?
  23. DrawShape had them as something that needed to be added to the rsrcForkBytes
  24. parameter of DoNeedDiskSpace.  Are they the overhead involved in added a
  25. resource fork to a file?  What happens if more than one resource and/or more
  26. than one type of resource is added, how is rsrcForkBytes calculated?
  27.     I am about to dive into the MacApp source code, but any hints would be
  28. helpful and time saving!
  29.  
  30.     Steve Sheets
  31.  
  32.  
  33.